package cn.lingyangwl.agile.dynamic.config.core;

import cn.lingyangwl.agile.dynamic.config.core.event.ConfigDeleteEvent;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.event.EventListener;


/**
 * @author shenguangyang
 */
@Slf4j
@RequiredArgsConstructor
public class LocalDefaultConfigDeleteListener {

	@EventListener(ConfigDeleteEvent.class)
	public void defaultDelete(ConfigDeleteEvent event) {
		Object configKey = event.getSource();
		log.info("configKey [{}] 被删除", configKey);
	}
}
